

/**
 * Created by 81052 on 2018/4/10.
 */
public class Dome16 {
    public static void main(String[] args) {
        CalendarBean cb=new CalendarBean();
        cb.setYear(2018);
        cb.setMonth(4);
        String []a=cb.getCalendar();//返回号码的一维数组
        char []str="日一二三四五六".toCharArray();
        for(char c:str) {
            System.out.printf("%3c",c);
        }
        for (int i=0;i<a.length;i++) {
            if (i%7==0) {
                System.out.println("");
            }
            System.out.printf("%4s",a[i]);
        }
    }
}
